package net.hn.hnms.biz.meianshen.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 智呈物联 pan'sx
 * 2023/3/3 11:28
 * 1.0 version
 */
@Component
@Order(value = 1)
public class AfterRunner implements ApplicationRunner {
    @Autowired
    private KHDataService khDataService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        khDataService.TestKDBServerConnect();
//        khDataService.TestKDBTagOpenRecordset();
//        khDataService.TestKDBTagGroupGetTags();
//        khDataService.TestKDBTagGetAllNames();
//        khDataService.TestKDBTagGroupGetTags(1);
//        khDataService.TestKDBTagGroupGetTags(3);

//        List<String> strings = khDataService.TestKDBTagGetNames();
//        for (String tagName:strings) {
//            khDataService.TestKDBTagGetProperties(tagName);
//        }
////        khDataService.TestKDBDataGetCurrentValue(strings);
//        khDataService.TestKDBServerDisconnect();
    }
}
